<table class="layui-table">
    <thead>
    <tr>
        <td>幻灯编号</td>
        <td>幻灯标题</td>
        <td>发布人</td>
        <td>更新时间</td>
        <td>幻灯状态</td>
        <td>管理操作</td>
    </tr>
    </thead>
    {present name='slides'}
    {volist name='slides' id='slide'}
    <tr>
        <td>{$slide.id}</td>
        <td>{$slide.name}</td>
        <td>{$slide.member.username}</td>
        <td>{$slide.update_time}</td>
        <td class="layui-form">
            <input type="checkbox" lay-skin="switch" lay-filter="status" lay-text="ON|OFF" data-id="{$slide.id}"  value="1" {eq name="slide.status" value="1"} checked{/eq}>
        </td>
        <td class="textalign">
            <a href="javascript:slide.edit('{$slide.id}');" class="layui-btn layui-btn-small btn-success">
                编辑
            </a>
            <a href="javascript:slide.delete('{$slide.id}');"  class="layui-btn layui-btn-small btn-danger">
                删除
            </a>
        </td>
    </tr>
    {/volist}
    {/present}
</table>
<div class="fr mt20">
    总记录数：{$slides->total()} {$slides->render()}
</div>
